
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">


    <title>大SERVER管理系统</title>
	{{template "bootstrap"}}
  </head>

  <body role="document">
	{{template "nav"}}
	
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="/opts/log">日志管理<span class="sr-only">(current)</span></a></li>
            <li><a href="#">Reports</a></li>
            <li><a href="#">Analytics</a></li>
            <li><a href="#">Export</a></li>
          </ul>

        </div>
		
		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
			<div class="dropdown">

			  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
			    选择服务器组
			    <span class="caret"></span>
			  </button>
			  <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
				{{range .Stypes}}
			    	<li><a href="/opts/logfind?id={{.Id}}">{{.Name}}</a></li>
				{{end}}
			  </ul>

			</div>
			
			
			<table class="table table-striped">
				<thead>
					<th>Svid</th>
					<th>名称</th>
					<th>地址</th>
					<th>端口</th>
					<th>现日志等级</th>
					<th>新日志等级</th>
					<th>操作</th>
				</thead>
			
				<tbody>
					{{$tid := .Tid}}	
					{{range .Servers}}
					<form method="POST" action="/opts/logset" >
					<input class="hidden" name="tid" value="{{$tid}}" />
					<input class="hidden" name="id" value="{{.Id}}" />
					<tr>
						<td>{{.Svid}}</td>
						<td>{{.Name}}</td>
						<td>{{.Addr}}</td>
						<td>{{.Port}}</td>
						<td>{{.OldLv}}</td>
						<td>
							<select class="" name="lv" id="level">
								<option value="0">等级0</option>
								<option value="1">等级1</option>
								<option value="2">等级2</option>
								<option value="3">等级3</option>
								<option value="4">等级4</option>
								<option value="5">等级5</option>
								<option value="6">等级6</option>
								<option value="7">等级7</option>
							</select>
						</td>
						<td>
							<button type="submit">设置日志等级</button>
						</td>
					</tr>
					</form>
					{{end}}
				</tbody>
			</table>
		
		</div> 
	</div>
</div>
	   


  </body>
</html>

